package com.sj.data;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-07-25
 * Time: 上午 11:25
 * Description: 节点类
 *
 * @author xiaoqi
 * @since 2022-07-25
 */
@Data
@NoArgsConstructor
public class Node<T, D> {

    /**
     * 键
     */
    private T key;
    /**
     * 值
     */
    private D value;
    /**
     * 当前节点的下一个节点
     */
    private Node<T, D> next;

    public Node(T key, D value) {
        this.key = key;
        this.value = value;
    }
}